package com.ikas.ai.server.schedule.handler;

import com.ikas.ai.server.module.morningpaper.render.MorningPaperVariablesRender;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MorningPaperHandler {

    @Autowired
    MorningPaperVariablesRender morningPaperVariablesRender;

    @XxlJob(value = "morningPaperGenerate")
    public void syncWorkFlowInstanceResult() {
        log.info("===================>xxl-job morningPaperGenerate start<===================");
        morningPaperVariablesRender.generateANewOne();
        log.info("===================>xxl-job morningPaperGenerate end<===================");
    }
}
